package com.weichuanbo.xwdz.mvp.model.entity;

/**
 * Created by ssy on 2018/7/29 14:25
 * E-Mail ：1161209667@qq.com
 */
public class SocketMessageBean<T> {

    /**
     * header : {"code":267386902}
     * body : {"openid":"1","openid_type":"wm","info":{"token":"mytoken","name":"test1","head_url":"http://myheader/ddd"},"client_type":0}
     */

    private HeaderBean header;
    private T body;

    public SocketMessageBean(HeaderBean headerBean) {
        header= headerBean;
    }

    public HeaderBean getHeader() {
        return header;
    }

    public void setHeader(HeaderBean header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }

    public static class HeaderBean {
        /**
         * code : 267386902
         */

        private long code;

        public HeaderBean(long requestCode) {
            code = requestCode;
        }

        public long getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }
    }


}
